package com.ihunanren.biz.function.domain;

/**
 * 身份证信息
 * 
 * @author kalman03
 */
public class IdentityCard extends WeixinResp{

	private String code;
	private String location;
	private String birthday;
	private String gender;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String toReply() {
		StringBuilder sb = new StringBuilder();
		sb.append("身份证号：").append(code).append("，生日：").append(birthday)
				.append("，发证地：").append(location).append("，性别：");
		if ("m".equalsIgnoreCase(gender)) {
			sb.append("男");
		} else {
			sb.append("女");
		}
		return sb.toString();
	}

	@Override
	public String toString() {
		return "IdentityCard [code=" + code + ", location=" + location
				+ ", birthday=" + birthday + ", gender=" + gender + "]";
	}
}
